<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div></div>
    <style>
        div {
            height: 100vh;
            background: linear-gradient(45deg, #000 0, #000 50%, #fff 50%);
        }

        div::before {
            content: "恭喜发财，红包拿来！！！";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #fff;
            font-size: 50px;
            mix-blend-mode: difference;
            animation: move 3s infinite linear alternate;
        }

        @keyframes move {
            0% {
                transform: translate(-30%, -50%);
            }

            100% {
                transform: translate(-70%, -50%);
            }
        }
    </style>
</body>

</html>